<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="base/include/head">
</head>
<body>
		   <div id="tb" style="padding:5px;height:auto">
			<input id="userMsg" class="easyui-textbox" style="height: 21px;width:180px" value="" />
			<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="dataTable()"> 搜索 </a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-add" onclick="dataTable()">添加日志</a> 
		</div>
		<table id="tt"></table> 
</body>

<script type="text/javascript">
$(function(){
	dataTable();
});

function dataTable(){
	$('#tt').datagrid(
				{
					title : '我的案例',
					toolbar : '#tb',
					url : '../supplier/queryUser',
					method : 'POST',
					queryParams : {
					},
					striped : true,
					fitColumns : false,
					singleSelect : true,
					rownumbers : true,
					pagination : true,
					nowrap : true,
					striped:true,
				    remoteSort: true,
				    multiSort: true,
					pageSize : 10,
					pageList : [10, 20, 50, 100, 150, 200],
					showFooter : true,
					checkOnSelect :false,
					columns : [ [
							{field : 'userAccount',title : '创建日期',		width : 200,align : 'center'},
							{field : 'userAccount',title : '评论人',		width : 200,align : 'center'},
							{field : 'userAccount',title : 'dd',		width : 200,align : 'center'},
							{field : 'userName',title : '日志标题',	width : 200,align : 'center'},
							{field : 'aaa1',title : '次标题',	width : 400,align : 'center'},
							{field : 'password',title : '状态',	width : 50,align : 'center'}
							] ],
					onClickRow: function(rowIndex, rowData){
					} 
				}); 
	}
</script>
</html>